package com.easycamera.helper

import com.easycamera.R
import com.seu.magicfilter.filter.helper.MagicFilterType

object FilterTypeHelper {
    @JvmStatic
    fun FilterType2Color(filterType: MagicFilterType?): Int {
        return when (filterType) {
            MagicFilterType.NONE -> R.color.filter_color_grey_light
            MagicFilterType.WHITECAT, MagicFilterType.BLACKCAT, MagicFilterType.SUNRISE, MagicFilterType.SUNSET -> R.color.filter_color_brown_light
            MagicFilterType.COOL -> R.color.filter_color_blue_dark
            MagicFilterType.FAIRYTALE -> R.color.filter_color_blue
            MagicFilterType.WARM -> R.color.filter_color_pink
            MagicFilterType.MONO -> R.color.filter_color_brown_dark
            MagicFilterType.NOSTALGIA -> R.color.filter_color_green_dark
            MagicFilterType.SKINWHITEN, MagicFilterType.HEALTHY -> R.color.filter_color_red
            MagicFilterType.SWEETS -> R.color.filter_color_red_dark
            else -> R.color.filter_color_grey_light
        }
    }

    @JvmStatic
    fun FilterType2Thumb(filterType: MagicFilterType?): Int {
        return when (filterType) {
            MagicFilterType.NONE -> R.drawable.filter_thumb_original
            MagicFilterType.WHITECAT -> R.drawable.filter_thumb_whitecat
            MagicFilterType.BLACKCAT -> R.drawable.filter_thumb_blackcat
            MagicFilterType.MONO -> R.drawable.filter_thumb_inkwell
            MagicFilterType.SKINWHITEN -> R.drawable.filter_thumb_beauty
            MagicFilterType.COOL -> R.drawable.filter_thumb_cool
            MagicFilterType.FAIRYTALE -> R.drawable.filter_thumb_fairytale
            MagicFilterType.HEALTHY -> R.drawable.filter_thumb_healthy
            MagicFilterType.NOSTALGIA -> R.drawable.filter_thumb_nostalgia
            MagicFilterType.SWEETS -> R.drawable.filter_thumb_sweets
            MagicFilterType.WARM -> R.drawable.filter_thumb_warm
            MagicFilterType.SUNRISE -> R.drawable.filter_thumb_sunrise
            MagicFilterType.SUNSET -> R.drawable.filter_thumb_sunset
            MagicFilterType.SKETCH -> R.drawable.filter_thumb_sketch
            else -> R.drawable.filter_thumb_original
        }
    }

    @JvmStatic
    fun FilterType2Name(filterType: MagicFilterType?): Int {
        return when (filterType) {
            MagicFilterType.NONE -> R.string.filter_none
            MagicFilterType.WHITECAT -> R.string.filter_whitecat
            MagicFilterType.BLACKCAT -> R.string.filter_blackcat
            MagicFilterType.MONO -> R.string.filter_inkwell
            MagicFilterType.COOL -> R.string.filter_cool
            MagicFilterType.FAIRYTALE -> R.string.filter_fairytale
            MagicFilterType.HEALTHY -> R.string.filter_healthy
            MagicFilterType.NOSTALGIA -> R.string.filter_nostalgia
            MagicFilterType.SWEETS -> R.string.filter_sweets
            MagicFilterType.WARM -> R.string.filter_warm
            MagicFilterType.SUNRISE -> R.string.filter_sunrise
            MagicFilterType.SUNSET -> R.string.filter_sunset
            MagicFilterType.SKINWHITEN -> R.string.filter_skinwhiten
            MagicFilterType.SKETCH -> R.string.filter_sketch
            else -> R.string.filter_none
        }
    }
}